// 定时任务工具
const schedule = require('node-schedule');
let rule = new schedule.RecurrenceRule();

class ScheduleTool {
    static dayJob(time, handle){
        // 设置任务在某个时间执行
        rule.hour = time;
        schedule.scheduleJob(rule, handle);
    }
}
module.exports = ScheduleTool;